import request from '@/utils/request'
export default {
    //条件查询带分页课程
    getCourseList(current, limit, searchObj) {
        return request({
            url: `/eduservice/coursefront/getFrontCourseList/${current}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },

    //查询所有课程分类方法,树形
    getAllSubject() {
        return request({
            url: `/eduservice/subject/getAllSubject`,
            method: 'get'
        })
    },

    //课程详情方法
    getCourseInfo(id){
        return request({
            url: `/eduservice/coursefront/getFrontCourseInfo/${id}`,
            method: 'get'
        })
    }
}